@extends('layouts.accountmanage')

@section('title', '订单管理')

@section('header')
	@include('layouts.header-two')
@endsection

@section('content')
<div class="wrapper-container">
				<div class="orderManage-wrapper">
					<div class="orderManage-title">
						<div class="container">
							<h2>用户管理中心</h2>					
						</div>					
					</div>
					<div class="orderManage-tab">
						<div class="container">
							<div class="row">
								<div class="col-md-2">
									<div class="orderManage-in">
										<a href=" {{ route('home')}}">资料管理</a>		
										<a class="manage-active" href="#">订单管理</a>	
										<a href="{{ route('userrecharge')}}">余额管理</a>
									</div>	
								</div>
								<div class="col-md-10">
									<div class="orderManage-inner">
										<h3>全部订单</h3>
										<div class="table-responsive">
										  	<table class="table table-bordered">
												<tr>
													<th>资源名称</th>
													<th>消耗金额</th>
													<th>订单时间</th>
												</tr>
												@foreach($orders as $key => $order)
												<tr>
										  			<td class="table-title">{{ $order->file_title }}</td>
										  			<td class="amount">{{ $order->pay_amount }}金币</td>
										  			<td class="time">{{ $order->created_at }}</td>
										  		</tr>
												@endforeach
										  	</table>
										</div>	
										<div class="page">
										  	{{--<ul class="pageline">--}}
											    {{--<li class="preDefault"><a href="#"></a></li>--}}
											    {{--<li class="choose"><a href="#">1</a></li>--}}
											    {{--<li><a href="#">2</a></li>--}}
											    {{--<li><a href="#">3</a></li>--}}
											    {{--<li><a href="#">4</a></li>--}}
											    {{--<li><a href="#">5</a></li>--}}
											    {{--<li class="next"><a href="#"></a></li>--}}
										  	{{--</ul>--}}
											{!! $orders->render() !!}
										</div>										
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>						
			</div>
@endsection

@section('footer')
	@include('layouts.footer-short')
@endsection
